﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PhanCongDeTai.ascx.cs" Inherits="QuanLyDeTaiKHCN.UserControls.Others.PhanCongDeTai" %>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="udt" runat="server">
    <ContentTemplate>
        <asp:Panel ID="pnlist" runat="server">
            <div style="text-align: center">
                <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" DataKeyNames="MaDeTaiDuAn" ForeColor="#333333" OnRowDeleting="grid_RowDeleting">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="Mã đề tài">
                            <ItemTemplate>
                                <asp:Label ID="lblMaDeTaiDuAn" runat="server" Text='<%# Bind("MaDeTaiDuAn") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tên đề tài">
                            <ItemTemplate>
                                <asp:Label ID="lblTenDeTaiDuAn" runat="server" Text='<%# Bind("TenDeTaiDuAn") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Nhân viên đang thụ lý">
                            <ItemTemplate>
                                <%#Eval("NhanVienThuLy") %>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Ngày Khởi Tạo">
                            <ItemTemplate>
                                <%#Eval("Ngay") %>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Phân công lại" ShowHeader="true">
                            <ItemTemplate>
                                <%--<a href='<%#"./?mod="+_ps.Encrypt("Manager","gold",128) +"&id="+_ps.Encrypt(Eval("MaDeTaiDuAn").ToString(),"gold",128)%>' title="Chọn để vào trang quản lý"><i class='icon-folder-open-alt'></i>&nbsp;Chọn</a>--%>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" Text="<i class='icon-folder-open-alt'></i> Phân công lại"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" Width="100px" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnphancong" runat="server" Visible="false">
            <div class="control-group info row-fluid">
                <div class="controls">
                    <asp:Label ID="lblTenDeTai" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                </div>
                <div style="height:5px;clear:both;"></div>
                <label class="control-label" style="width:200px;padding-right: 10px;">Người thụ lý</label>
                <div class="controls">
                    <asp:DropDownList ID="drlNguoiThuLy" CssClass="span4 height" runat="server"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rq3" ValidationGroup="kiemtra" InitialValue="-1" runat="server" Text="Chọn nhân viên thụ lý" Display="Dynamic" ForeColor="Red" SetFocusOnError="true" ControlToValidate="drlNguoiThuLy"></asp:RequiredFieldValidator>
                </div>
                <div style="height:10px;"></div>
                <label class="control-label" style="width:200px;padding-right: 10px;"></label>
                <div class="controls">
                    <asp:LinkButton ID="btnsave" ValidationGroup="kiemtra" OnClick="btnsave_Click" Width="100" class="btn btn-primary" runat="server"><i class=" icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton2" OnClick="LinkButton2_Click" Width="100" class="btn btn btn-danger" runat="server"><i class="icon-signout"></i>&nbsp;&nbsp;Đóng</asp:LinkButton>
                    <asp:Label ID="lblstatus" runat="server" ForeColor="Red"></asp:Label>
                    <input type="hidden" runat="server" id="inputmadetai" />
                    <br />
                </div>
            </div>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
